package com.xiaoxi.observermode.observer;

import com.xiaoxi.observermode.generator.NumberGenerator;

/**
 * @Author xiaoxi
 * @ProjectName design_mode
 * @PackageName com.xiaoxi.observermode.observer
 * @ClassName DigstObserver
 * @Description TODO
 * @Date 2023/3/27 15:46
 * @Version 1.0
 */
public class DigitObserver implements Observer {

    @Override
    public void update(NumberGenerator numberGenerator) {
        System.out.println(numberGenerator.getNumber());
    }

}
